package chapter_13_proxy.force_proxy;

/**
 * @author yaochenglong
 * @date 2017/10/19
 */
public class Client {
    public static void main(String[] args) {
        IGamePlayer player = new GamePlayer("张三");
        player.login();
        player.killBoss();
        player.upgrade();

        //使用代理访问
        IGamePlayer proxy = player.getProxy();
        proxy.login();
        proxy.killBoss();
        proxy.upgrade();

    }
}
